package com.wxq.digest1.impl;

import com.wxq.digest1.Digest;
import org.apache.commons.codec.digest.DigestUtils;

public class ShaDigestImpl implements Digest {
    @Override
    public String digest(String raw) {
        System.out.println("sha256 create");
        return DigestUtils.sha256Hex(raw);
    }
}
